package com.example.mygame.mystick;

import android.graphics.Canvas;
import android.graphics.Paint;


public class MyHero {
	boolean isVisable;
	
	private int x;
	private int y;
	private int radius;
	public MyHero(int x, int y, int radius) {
		this(x,y);
		this.radius = radius;
	}
	private MyHero(int x, int y) {
		isVisable = true;
		this.x = x;
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getRadius() {
		return radius;
	}
	public void setRadius(int radius) {
		this.radius = radius;
	}
	public boolean isVisable() {
		return isVisable;
	}
	public void setVisable(boolean isVisable) {
		this.isVisable = isVisable;
	}
	public void draw(Canvas canvas, Paint mPaint) {
		canvas.drawCircle(x , y, radius, mPaint);
	}
	public void setOffset(int offset) {
		this.x += offset;
		
	}
	
}
